package com.zhkj.txg.module.order.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zhkj.txg.R
import com.zhkj.txg.module.order.entity.OrderAddressEntity

class AddressListAdapter :
    BaseQuickAdapter<OrderAddressEntity, BaseViewHolder>(R.layout.item_address_address) {

    override fun convert(helper: BaseViewHolder, item: OrderAddressEntity) {
        helper.setText(R.id.tvAddressConsignee, item.consignee)
            .setText(R.id.tvAddressMobile, item.mobile)
            .setText(R.id.tvAddressAddress, item.address)
            .setVisible(R.id.tvAddressDefault, item.isDefault)
    }
}